<?php
namespace wof;

class DBConfig{
    private $host="localhost";
    private $dbname = 'wof';
    private $user = 'root';
    private $pass = '';
    public  $pdo;
    
    public function __construct(){
        # connect to the database
        try {
          $this->pdo = new \PDO("mysql:host=$this->host;dbname=$this->dbname", $this->user, $this->pass);  
        }  
        catch(PDOException $e) {  
            file_put_contents('PDOErrors.txt', $e->getMessage(), FILE_APPEND);  
        }
    }
}
?>